<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<div style="padding: 20px">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
        <legend>分单流程</legend>
    </fieldset>
    <ul class="layui-timeline">
        <li class="layui-timeline-item">
            <i class="layui-icon layui-timeline-axis"></i>
            <div class="layui-timeline-content layui-text">
                <h3 class="layui-timeline-title">符合性格策划师</h3>
                <p>
                    <volist name="user_list3" id="vo">
                        《{$vo.nickname}》<br>
                    </volist>
                </p>
            </div>
        </li>
        <notempty name="user_list4">
            <li class="layui-timeline-item">
                <i class="layui-icon layui-timeline-axis"></i>
                <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">案例最多人员</h3>
                    <ul>
                        <volist name="user_list4" id="vo4">
                            <li>《{$vo4.nickname}》--相同案例数量：{$vo4.count}个</li>
                        </volist>
                    </ul>
                </div>
            </li>
        </notempty>

        <notempty name="user_list5">
        <li class="layui-timeline-item">
            <i class="layui-icon layui-timeline-axis"></i>
            <div class="layui-timeline-content layui-text">
                <h3 class="layui-timeline-title">二次消费最多</h3>
                <p>
                    <volist name="user_list5" id="vo">
                        《{$vo.nickname}》--二消金额：{$vo.total_money}<br>
                    </volist>
                </p>
            </div>
        </li>
        </notempty>

        <notempty name="user_list6">
        <li class="layui-timeline-item">
            <i class="layui-icon layui-timeline-axis"></i>
            <div class="layui-timeline-content layui-text">
                <h3 class="layui-timeline-title">奖励单</h3>
                <p>
                    <volist name="user_list6" id="vo">
                        《{$vo.nickname}》-- 奖励单数量：{$vo.sum}<br>
                    </volist>
                </p>

            </div>
        </li>
        </notempty>


        <notempty name="user_list7">
        <li class="layui-timeline-item">
            <i class="layui-icon layui-timeline-axis"></i>
            <div class="layui-timeline-content layui-text">
                <h3 class="layui-timeline-title">策划师等级</h3>
                <p>
                    <volist name="user_list7" id="vo">
                        《{$vo.nickname}》-- 策划师等级：{$vo.level_title}<br>
                    </volist>
                </p>

            </div>
        </li>
        </notempty>

        <li class="layui-timeline-item">
            <i class="layui-icon layui-timeline-axis"></i>
            <div class="layui-timeline-content layui-text">
                <h3 class="layui-timeline-title">选择要分配的策划师</h3>

                <form class="layui-form" action="">

                    <input type="hidden" name="order_id" value="{$order_id}"/>

                    <div class="layui-form-item" pane="">
                        <div class="layui-input-block" style="margin-left:0px">
                            <volist name="result_user" id="vo">
                                <input type="radio" name="user_id" value="{$vo.user_id}" title="{$vo.nickname}"
                                       checked="">
                            </volist>
                        </div>
                    </div>



                    <div class="layui-inline layui-form-item">
                        <label class="layui-form-label" style="width: 100px">选择其他人员</label>
                        <div class="layui-input-inline">
                            <select name="other_user_id"  lay-search="">
                                <option value="">直接选择或搜索选择</option>
                                <volist name="all_user_list" id="vo">
                                    <option value="{$vo.user_id}">{$vo.nickname}</option>
                                </volist>
                            </select>
                        </div>
                    </div>



                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit="" lay-filter="demo1">确认分配</button>
                        </div>
                    </div>

                </form>


            </div>
        </li>


    </ul>
</div>


<script src="__PUBLIC__/js/jquery-1.10.2.min.js" charset="utf-8"></script>
<script src="__PUBLIC__/layui/layui.all.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    var form = layui.form
    //监听提交
    form.on('submit(demo1)', function (data) {

        $.ajax({
            url: "{:U('Admin/married/setOrderUser')}",
            data: data.field,
            dataType: 'json',
            success: function (ret) {
                if (ret.status == 1) {
                    layer.msg(ret.msg, {icon: 1,time: 1500},function () {
                        window.parent.closeIfream();

                    });
                }else{
                    layer.msg(ret.msg, {icon: 1,time: 2000},function () {
                        window.parent.closeIfream();

                    });
                }
            }
        });

        return false;
    });
</script>

</body>
</html>